package com.example.mybatispractice.mapper;

import com.example.mybatispractice.model.UserInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2025-01-17
 * Time: 13:01
 */
@Mapper
public interface UserInfoXmlMapper {

    List<UserInfo> selectAll();
    List<UserInfo> selectAll2();
    List<UserInfo> selectAll3();
    Integer insertUser(UserInfo userInfo);

    Integer insertUser2(@Param("userInfo")UserInfo userInfo);

    Integer updateUser(Integer id,String password);

    Integer deleteUser(Integer id);

    Integer insertUserByCondition(UserInfo userInfo);

    List<UserInfo> selectUserByCondition(UserInfo userInfo);

    Integer updateUserByCondition(UserInfo userInfo);

    Integer batchDelete(List<Integer> ids);
}
